/*
 * @Author: 王灿
 * @Date: 2019-10-27 16:55:16
 * @Description: file content
 */
// import { getAllDictionaryKeyValue } from '@/api/login'

const login = {
    state: {
        dataDic: {}
    },

    mutations: {
        SET_DATADIC: (state, dic) => {
            state.dataDic = dic
        }
    },
    actions: {
        // GetAllDictionaryKeyValue({ commit }) {
        //     return new Promise((resolve, reject) => {
        //         getAllDictionaryKeyValue()
        //             .then(response => {
        //                 commit('SET_DATADIC', response.allDictionaryKeyValueMap)
        //                 resolve(response)
        //             })
        //             .catch(error => {
        //                 reject(error)
        //             })
        //     })
        // }
    }
}

export default login